<?php

/**
 * A simple bootstrap for phpunit test execution and CI
 *
 * PHPUnit operates outside of the proper environment
 * so we need to bootstrap an environment that works.
 *
 * PHP Version 5
 *
 * LICENSE: This source file is proprietary code
 *
 * @category  UnitTests
 * @package   PHPUnit
 * @author    andrew carlson <andrew@acarlsonphoto.com>
 * @copyright 2013 andrew carlson
 * @license   http://www.php.net/license/3_01.txt  PHP License 3.01
 * @version   GIT: $Id: 04df1b258cad561cd8acb3a5b0e3c77039ed84d2 $
 * @link      http://google.com
 */

/**
 * an autoload function to load in classes on demand
 * while unit testing.
 */
spl_autoload_register(function ($class)
{
    $path = "src/classes/" . $class .".class.php";
    $file =  str_replace("\\", "/", $path);
    if (is_file($file)) {
        require_once $file;
    }
});

?>
